var m = Object.defineProperty, f = Object.defineProperties;
var d = Object.getOwnPropertyDescriptors;
var n = Object.getOwnPropertySymbols;
var u = Object.prototype.hasOwnProperty, k = Object.prototype.propertyIsEnumerable;
var l = (t, e, o) => e in t ? m(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o, p = (t, e) => {
  for (var o in e || (e = {}))
    u.call(e, o) && l(t, o, e[o]);
  if (n)
    for (var o of n(e))
      k.call(e, o) && l(t, o, e[o]);
  return t;
}, i = (t, e) => f(t, d(e));
import { ref as s, onMounted as h } from "vue";
import { c as y } from "../props-c0e5b20d.mjs";
import { c as C } from "../component-87e22bdd.mjs";
/*!
* Vin UI 移动端 Vue3 组件库 v0.2.9 Fri Jun 02 2023 21:01:02 GMT+0800 (中国标准时间)
* (c) 2023 @vingogo.
* Released under the MIT License.
*/
const O = i(p({}, y), {
  type: {
    type: String,
    default: "base"
    // simple，base，complex
  },
  info: {
    type: Object,
    default: () => ({})
  },
  operation: {
    type: Array,
    default: ["replay", "like", "more"]
  }
}), { create: v, translate: b } = C("comment-bottom"), A = v({
  props: O,
  emits: ["clickOperate", "handleClick"],
  setup(t, { emit: e }) {
    const o = s(!1), a = s([]);
    return h(() => {
      const r = ["replay", "like", "more"];
      t.operation && t.operation.forEach((c) => {
        r.includes(c) && a.value.push(c);
      });
    }), { showPopver: o, operate: (r) => {
      r === "more" && (o.value = !o.value), e("clickOperate", r);
    }, mergeOp: a, handleClick: () => {
      e("handleClick");
    }, translate: b };
  }
});
export {
  A as default
};
